<?php
include_once "conn.php";
$id=$_GET['id'];
$sql=$db->query("DELETE FROM address WHERE address_id = '$id'");
if($sql){
    echo json_encode(['msg'=>'success']);
}else{
    echo json_encode(['msg'=>'error']);
}
$db->close();
?>